# test_1
# def test_1(a, b, c, d):
#     s = a + b + c + d
#     print('四个数的和为' + s)
#
#
# e = input("请输入第一个数字：")
# l = input("请输入第二个数字：")
# q = input("请输入第三个数字：")
# p = input("请输入第四个数字：")
# test_1(e, l, q, p)

# test_2
# b = []
# i = 0
# q = int(input("请输入列表长度："))
# while i < q:
#     a = int(input())
#     b.append(a)
#     s = sum(b)
#     i += 1
# else:
#     print(s)

# test_3
for i in range(9, 0, -1):
    for j in range(1, i + 1):
        print(format(j), "*", format(i), "=", format(i * j), end='\t')
    print()

# test_4
# n = int(input("n="))
# for i in range(1, n + 1):
#     for j in range(1, i + 1):
#         print(format(i), "*", format(j), "=", format(i * j), end='\t')
#     print()

# test_5
# a = [1, 2, 34, 4]
# b = int(input("传入"))
# if b > len(a):
#     print("-1")
# elif b <= len(a):
#     print(a[b])

# test_6
# s = 0
# for i in range(1,301):
#     s += i
# print(s)

# test_7
# ceshi = ['小明', '小张', '小黄', '小杨']
# yanfa = ['小黄', '小李', '小王', '小杨', '小周']
# shichang = ['小杨', '小张', '小吴', '小冯', '小周']
# zongrenshu = len(ceshi) + len(yanfa) + len(shichang)
# print(zongrenshu)
# b = 1
# c = 1
# d = 1
# for a in ceshi and yanfa and shichang:
#     if a in ceshi and a in yanfa and a not in shichang:
#         b += 1
#         print("名字为：", format(a))
# for a in yanfa and ceshi and shichang:
#     if a in yanfa and a not in ceshi and a in shichang:
#         c += 1
#         print("名字为：", format(a))
# for a in shichang and yanfa and ceshi:
#     if a in shichang and a in ceshi and a not in yanfa:
#         d += 1
#     print("名字为：", format(a))
# s = b + c + d
# print("总人数为：", format(s))
